#!/usr/bin/env bash

#=== 合并视频 ===#
for file in FM*.mpg
do
    files="$files '$file'"
done
echo $files
merge_file=test.mp4
# 必须用eval预处理
eval mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=5000 -oac mp3lame -lameopts aq=7:vbr=2:q=6 $files -o $merge_file
